Xbasic

SQL_TableInfoOfDBF Function

Syntax

Result_Flag as L = SQL_TableInfoOfDBF(* Name_or_pointer ,& TableInfoResult )

Arguments

Result_Flag

Indicates whether the operation was successful.

Name_or_pointer

The path to and name of an Alpha Anywhere table.

TableInfoResult

A SQL::TableInfo object that records the properties of the named table.

Description

Create a SQL table definition from a DBF file, or an open table pointer.

Discussion

The SQL_TableInfoOfDBF() function creates a SQL::TableInfo object based on a local Alpha Anywhere .DBF table. This function is a wrapper for A5_SQL_TableInfo_of_DBF().

Example

dim ti as SQL::tableinfo
? SQL_TableInfoOfDBF("c:\databases\alphasports\product.dbf", ti)
= .T.
? ti
= +Column.
Comment = ""
DBFRowSyntax = PRODUCT_ID,C,12,0
DESCRIPTION,C,32,0
COST,N,7,2
RETAIL,N,7,2
RE_ORDER,N,4,0
VENDOR,C,5,0
QTY_IN_STO,N,6,0
+Index.
Name = "c:\databases\alphasports\product.dbf"
NativeAPI = "DBF"
NativeSyntax = "DBF"
Owner = ""
TableType = 0
TableTypeName = "Table"
Updateable = .T.

See Also